<?php

namespace Bete\View;

class View
{
    public static function html($tpl, array $data = [])
    {
        $instance = app()->view;

        foreach ($data as $key => $value) {
            $instance->assign($key, $value);
        }

        return $instance->display($tpl . ".tpl");
    }
}
